﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using CompactMapper.Orm.Annotations;
using CompactMapper.Orm.Contracts;
using CompactMapper.Orm.UnitOfWork.Mappings;

namespace CompactMapper.Orm.Tests
{
    [Table]
    public class Detail: IKeyedPersistent
    {
        public bool IsModified { get; set; }

        [PrimaryKey]
        public IKey Key { get; set; }

        [TextColumn]
        public string Value { get; set; }

        public Detail()
        {
            Key = KeyFactory.New();
        }
    }
}
